package com.note7_11.question1;

import java.util.List;

public class Login {
	
	private List<User> list;
	
	public Login(List<User> list){
		this.list = list;
	}
	
	public boolean login(User user){
		for(User u:list){
			if(user.equals(u)){
				return true;
			}
		}
		return false;
	}

}
